package cn.com.msui.dao.identity;

import java.util.List;

import cn.com.msui.domain.identity.Role;

/**
 * 与角色有关的DAO接口
 * 
 * @author Yuegz
 * 
 */
public interface RoleDAO {

	/**
	 * 通过ID查询子角色
	 * 
	 * @param role
	 * @return
	 * @throws Exception
	 */
	public List<Role> selectChildrenRolesById(Role role) throws Exception;

	/**
	 * 插入角色
	 * 
	 * @param role
	 * @throws Exception
	 */
	public void insertOneRole(Role role) throws Exception;

	/**
	 * 更新角色
	 * 
	 * @param role
	 * @throws Exception
	 */
	public void updateOneRole(Role role) throws Exception;

	/**
	 * 删除一个角色
	 * 
	 * @param role
	 * @throws Exception
	 */
	public void deleteOneRole(Role role) throws Exception;

}
